package no.rmz.chez.chess.pieces;

import java.util.Collection;

import no.rmz.chez.chess.board.ChessBoard;
import no.rmz.chez.chess.board.Color;
import no.rmz.chez.chess.board.Coord;
import no.rmz.chez.game.Move;


public final class King extends ChessPiece {
    public King(Color c) {
        super(c, "King", "K");  // XXX Could be unicode \u2654
    }
    
    @Override
    public void addMoves(final Collection<Move> result, final ChessBoard b, final Coord c) {
        addRaysAllDirections(result, b, c, 1);
    }
    
    @Override
    public boolean isKing() {
        return true;
    }
}
